/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.GUI.sidepanels;

import java.awt.Color;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author Arfeniel
 */
public class RunTable extends JTable {
    TableCellRenderer lr = (TableCellRenderer) new LabelRenderer();
    TableCellEditor le = new LabelEditor();
    RunTable(RunTableModel ptm) {
        super(ptm);
        this.setGridColor(Color.LIGHT_GRAY);

    }

    @Override
    public TableCellEditor getCellEditor(int row, int column) {
        if (column == 0) {
            return le;
        } else {
            return super.getCellEditor(row, column);
        }
    }

    @Override
    public TableCellRenderer getCellRenderer(int row, int column) {
        if (column == 0){
            return lr;
        }else{
            return super.getCellRenderer(row, column);
        }
    }
}
